package com.morphiastic.conversion;

/**
 * The default converter that takes ES value and returns it as a String
 * @author Alex
 *
 */
public class DefaultConverter extends ElasticConverter<String>{

	@Override
	public String fromIndexValue(Object val) {
		return val.toString();
	}

	@Override
	public String toIndexValue(Object val) {
		if(val == null)return null;
		return val.toString();
	}
}
